package com.whty.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whty.common.support.Convert;
import com.whty.system.domain.PublishManagement;
import com.whty.system.mapper.PublishManagementMapper;
import com.whty.system.service.IPublishManagementService;

/**
 * 发行管理 服务层实现
 * 
 * @author mario
 * @date 2018-11-02
 */
@Service
public class PublishManagementServiceImpl implements IPublishManagementService 
{
	@Autowired
	private PublishManagementMapper publishManagementMapper;

	/**
     * 查询发行管理信息
     * 
     * @param id 发行管理ID
     * @return 发行管理信息
     */
    @Override
	public PublishManagement selectPublishManagementById(Long id)
	{
	    return publishManagementMapper.selectPublishManagementById(id);
	}
	
	/**
     * 查询发行管理列表
     * 
     * @param publishManagement 发行管理信息
     * @return 发行管理集合
     */
	@Override
	public List<PublishManagement> selectPublishManagementList(PublishManagement publishManagement)
	{
	    return publishManagementMapper.selectPublishManagementList(publishManagement);
	}
	
    /**
     * 新增发行管理
     * 
     * @param publishManagement 发行管理信息
     * @return 结果
     */
	@Override
	public int insertPublishManagement(PublishManagement publishManagement)
	{
	    return publishManagementMapper.insertPublishManagement(publishManagement);
	}
	
	/**
     * 修改发行管理
     * 
     * @param publishManagement 发行管理信息
     * @return 结果
     */
	@Override
	public int updatePublishManagement(PublishManagement publishManagement)
	{
	    return publishManagementMapper.updatePublishManagement(publishManagement);
	}

	/**
     * 删除发行管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePublishManagementByIds(String ids)
	{
		return publishManagementMapper.deletePublishManagementByIds(Convert.toStrArray(ids));
	}
	
}
